const getters = {
  sidebar: state => state.app.sidebar, // APP侧边栏导航
  device: state => state.app.device,
  token: state => state.user.token, // user里的数据
  userId: state => state.user.userInfo.userId,
  avatar: state => state.user.avatar, // 
  name: state => state.user.name
}
// getter 实际上提供了便携式访问（少些一层结构）
export default getters
